package jgl.vajra.driver.part.mine.activity;

import java.util.ArrayList;
import java.util.List;

import jgl.vajra.driver.R;
import jgl.vajra.driver.bean.CommissionDetailsBean;
import jgl.vajra.driver.part.mine.viewModel.CommissionDetailsViewModel;
import jgl.vajra.driver.widget.base.BaseListActivity;
import jgl.vajra.driver.widget.mvvm.factory.CreateViewModel;
import jgl.vajra.driver.widget.recyclerView.RefreshRecyclerNetConfig;

@CreateViewModel(CommissionDetailsViewModel.class)
public class CommissionDetailsActivity extends BaseListActivity<CommissionDetailsViewModel,CommissionDetailsBean> {
    @Override
    protected String getToolbarTitle() {
        return "佣金明细";
    }

    @Override
    protected RefreshRecyclerNetConfig getRefreshRecyclerNetConfig() {
        return null;
    }

    @Override
    protected int getItemLayout() {
        return R.layout.item_commission_details;
    }

    @Override
    public void onItemClick(int position, CommissionDetailsBean itemData) {

    }

    @Override
    public void initView() {
        super.initView();

        List<CommissionDetailsBean> list = new ArrayList<>();
        list.add(new CommissionDetailsBean("哈哈"));
        list.add(new CommissionDetailsBean("哈哈"));
        list.add(new CommissionDetailsBean("哈哈"));
        list.add(new CommissionDetailsBean("哈哈"));
        list.add(new CommissionDetailsBean("哈哈"));
        list.add(new CommissionDetailsBean("哈哈"));
        list.add(new CommissionDetailsBean("哈哈"));
        mAdapter.refresh(list);
    }
}
